package com.rj.bd.utils;

public class JiaMi {
	
	public static String phoneJiaMi(String lphone){
		
		String phonejiami = lphone.substring(0, 3)+"******"+lphone.charAt(9)+lphone.charAt(10);
		
		return phonejiami;
		
		
	}
	
	public static String emailJiaMi(String lEmail) {
		String arr[] = lEmail.split("@");
		
		String zhanghao = arr[0];
		
		String emailjiami = ""+zhanghao.substring(0,3);
		
		for (int i = 0; i < zhanghao.length()-5; i++) {
		emailjiami=emailjiami+"*";	
		}
		emailjiami = emailjiami+zhanghao.charAt(zhanghao.length()-2)+zhanghao.charAt(zhanghao.length()-1)+"@"+arr[1];
		
		return emailjiami;
	}
}
